package ae.pcfc.cldos.online.web.constraints;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * 
 * @author arosa
 *
 */
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MaxFileSizeValidator.class)
public @interface MaxFileSize {
	String message() default "{javax.validation.constraints.Size.message}";
	
	Class<?>[] groups() default {};
	 
	Class<? extends Payload>[] payload() default {};
	
	long maxFileSize() default 0l;
}
